/****************************************************
 * 创建人：     @author hechengcheng
 * 创建时间: 2019年8月5日/下午5:11:52
 * 项目名称：  dfas-common-util
 * 文件名称: FormatEnum.java
 * 文件描述: @Description: 格式化枚举
 *
 * All rights Reserved, Designed By 投资交易团队
 * @Copyright:2019-2030
 *
 ********************************************************/
package com.springboot.enumration;

public enum FormatEnum {

    // 格式化枚举
    EMPTY_ENUM("EMPTY", "", "", "空格式化枚举"),
	CUSTOM_TRANS_CONFIG("", "%s-%s", "", "自定义数据转换"),
    DIC_CODE_T_EXPLAIN("PARAM_DATA_DICTIONARY","-%s-%s", "dicExplain", "根据字典编码转为字典描述"),
    INVEST_UNIT("INVEST_UNIT","-%s", "investUnitName", "根据投资单元编码获得投资单元名称"),
    INVEST_UNIT_PRODUCT("INVEST_UNIT","-%s", "prodName", "根据投资单元编码获得产品名称"),
    INVEST_GROUP("INVEST_GROUP","-%s", "investGroupName", "根据投资组编码获得投资组名称"),
    PROD_TYPE_T_NAME("PROD_TYPE","-%s", "prodTypeName", "根据产品类型转为产品类型名称"),
    PARAM_AREA_CODE_T_NAME("PARAM_AREA","-%s", "areaName", "根据地域编码转为地域名称"),
    TRADE_MARKET_NAME("PARAM_TRADE_MARKET","-%s", "marketName", "根据交易市场代码转换为交易市场名称"),
    TRADE_DIRECTION_NAME("PARAM_TRADE_DIRECTION","-%s", "directionName", "根据交易方向代码获得交易方向名称"),
    TRADE_PLATFORM_NAME("PARAM_TRADE_PLATFORM","-%s", "platformName", "根据交易平台代码获得交易平台名称")
    ;

    // 缓存类型
    private String type;
    private String format;
    private String key;
    private String desc;

    FormatEnum(String type, String format, String key, String desc) {
        this.type = type;
        this.format = format;
        this.key = key;
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public String getFormat() {
        return format;
    }

    public String getKey() {
        return key;
    }

    public String getDesc() {
        return desc;
    }

}
